﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Flagwind.ComponentModel;
using Flagwind.Diagnostics;
using Flagwind.Web;

namespace Flagwind.Diagnostics
{
	public class EasticSearchRemoteLogger : RemoteLogger
	{
		#region 重写方法

		protected override void RemoteLog(RemoteLogEntry entry)
		{
			var request = new RequestInstruction<RemoteLogEntry>();
			request.Params = entry;

			Task.Run(()=> HttpClientExtension.Post(base.PostUrl, request));
		}

		#endregion
	}
}
